package com.chentianyu.learn.demo01.service;

import com.chentianyu.learn.demo01.mapper.UsersMapper;
import com.chentianyu.learn.demo01.object.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class UsersService {
    @Autowired
    UsersMapper usersMapper;

    public List<User> selectUser(){
        return usersMapper.selectUser();
    }
    public void insertUser(Integer uid,String name){
        usersMapper.insertUser(uid, name);
    }
}
